package com.itheima.file;

import java.io.File;

public class Demo04 {

    public static void main(String[] args) {

        File file = new File("day12");
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());

        File file1 = new File("D:\\itcast");
        System.out.println(file1.getAbsolutePath());//D:\itcast
        System.out.println(file1.getPath());
    }
}
